Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(LabelAnnotator): Added code to clear the default properties if properties are defined in the config file. #854

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rombaum
Copy link

@rombaum rombaum commented Feb 14, 2025

I fixed the issue #853 by adding a line to the corresponding Java class LabelAnnotator. As an test I indexed two ontologies. For RadLex I used the following line at the config file for the label "label_property": [ "http://radlex.org/RID/Preferred_name"] . For the second ontology I didn't defined any property for the label in the config file. For RadLex http://radlex.org/RID/Preferred_name was used and for the other ontology the default property rdfs:label was used. The indexed ontologies looks as expected. I used in my case just the Plasma Ontology since it is not so huge and I know that it uses rdfs:label for the labels.

Image

Image

@rombaum
Copy link
Author

rombaum commented Feb 14, 2025

grafik
There is the wished label at the select OLS3 API see: http://localhost:8080/api/select?q=diabetes. In this case http://radlex.org/RID/Preferred_name was used as defined in the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant